/*    */ package com.qmsk.business.store.goods.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.basic.MapUtils;
/*    */ import com.utils.gson.in.GsonHeadOneRow;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class GoodsDAO extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 28 */     return getGsonOfParams("selectSqlWxGoogsinfoAll", params, 
/* 29 */       nPageIdx, nPageSize, true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGoodsDetail(Map<String, Object> params)
/*    */     throws SQLException
/*    */   {
/* 41 */     return getGsonOfParams("selectSqlWxGoogsinfo", params, false);
/*    */   }
/*    */ 
/*    */   public Integer getCheckBarCode(String barCode) throws SQLException {
/* 45 */     Map params = new HashMap();
/* 46 */     MapUtils.addToMap(params, "barCode", barCode);
/* 47 */     return queryForInt("selectChcekBarCode", params, Integer.valueOf(0));
/*    */   }
/*    */ 
/*    */   public Double getGoodsSalePrice(Long goodsId)
/*    */     throws SQLException
/*    */   {
/* 58 */     Map params = new HashMap();
/* 59 */     params.put("goodsId", goodsId);
/* 60 */     return queryForDouble("querySalePrice", params, null);
/*    */   }
/*    */ 
/*    */   public Integer getGoodsSaleIntegral(Long goodsId)
/*    */     throws SQLException
/*    */   {
/* 71 */     Map params = new HashMap();
/* 72 */     params.put("goodsId", goodsId);
/* 73 */     return queryForInt("querySaleIntegral", params, null);
/*    */   }
/*    */ 
/*    */   public Double getGoodsPromPrice(Long goodsId, Long shopId)
/*    */     throws SQLException
/*    */   {
/* 85 */     Map params = new HashMap();
/* 86 */     params.put("goodsId", goodsId);
/* 87 */     params.put("shopId", shopId);
/* 88 */     return queryForDouble("queryPromPrice", params, null);
/*    */   }
/*    */ 
/*    */   public GsonHeadOneRow getGoodsSalePriceAndIntegral(Long goodsId) throws SQLException
/*    */   {
/* 93 */     Map params = new HashMap();
/* 94 */     params.put("goodsId", goodsId);
/* 95 */     return getOneRowOfParams("querySalePriceAndIntegral", params);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.store.goods.dao.GoodsDAO
 * JD-Core Version:    0.5.3
 */